package ywpt.service.system;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.core.dao.extend.HibernateEntityExtendDao;
import ywpt.model.SystemHelp;

public class SystemHelpServiceImpl extends HibernateEntityExtendDao<SystemHelp> implements SystemHelpService{
	public SystemHelpServiceImpl() {
	}

	@Override
	public SystemHelp getSystemHelpById(Long id) {
		return this.get(id);
	}

	@Override
	public int getSystemHelpCountByCriteria(DetachedCriteria query) {
		return this.getCountByCriteria(query);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<SystemHelp> getSystemHelps(DetachedCriteria query,int pageSize, int startIndex) {
		return this.findAllByCriteria(query, pageSize, startIndex);
	}

	@Override
	public void saveSystemHelp(SystemHelp sh) {
		this.save(sh);
	}
}
